
 
.emoji-picker{ width: 400px;
   display: flex;
   justify-content: flex-start;
   .emoji-item{ width: 15%;}
}
.chat-app-container {
    width: 100%;
 
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.app-header {
    background: linear-gradient(135deg, #2c65c8 0%, #5290f9 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.header-content {
    flex: 1;
}

.app-title {
    font-size: 18px;
    font-weight: 500;
}

.app-description {
    font-size: 13px;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 0px;
    background-color: #f0f5ff;
}

.room-info {
    background-color: #ecf5ff;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #d9ecff;
    display: flex;
    align-items: center;
    position: relative;
}

.room-id-display {
    margin-left: 8px;
    font-weight: 500;
    color: #eee;
}

.copy-room-id {
    margin-left: 12px;
    font-size: 13px;
}

.messages-container {
    flex: 1;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
    overflow-y: auto;
    border: 1px solid #ebeef5;
    display: flex;
    flex-direction: column;
    position: relative;
}

.message-list {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.empty-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #909399;
    padding: 30px;
}

.message {
    display: flex;
    gap: 12px;
    position: relative;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-content {
    flex: 1;
    max-width: 80%;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.message-user {
    font-size: 14px;
    font-weight: 500;
    color: #606266;
}

.message-time {
    font-size: 12px;
    color: #909399;
    margin-left: 10px;
}

.message-text {
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.own-message {
    flex-direction: row-reverse;
}

.own-message .message-text {
    background-color: #d0e7ff;
    border-top-right-radius: 0;
}

.other-message .message-text {
    background-color: #ffffff;
    border: 1px solid #dcdfe6;
    color: #333;
    border-top-left-radius: 0;
}

.input-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dcdfe6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.chat-input {
    flex: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.43);
    height: 66px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.welcome-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.welcome-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #303133;
}

.welcome-description {
    font-size: 14px;
    color: #606266;
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.room-buttons {
    display: flex;
    gap: 20px;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    border-radius: 50%;
}

.new-message-indicator {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: #2c65c8;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    padding: 3px 8px;
    display: none;
}
.message-list {
   flex: 1;
   padding: 12px 0;
   display: flex;
   flex-direction: column;
   scroll-behavior: smooth;
   gap: 18px;
   overflow-y: auto; /* 添加垂直滚动条 */
   max-height: calc(100vh - 260px); /* 根据实际布局设置最大高度 */
}

.chat-user-list {
 width: 200px; position: absolute; bottom: 10px; right: 10px;
 background-color: #2c65c8; border-radius: 12px;
 border-left: 1px solid #ddd;
 padding: 10px;
 overflow-y: auto;
}

.chat-user-list h3 {
 margin: 0 0 10px 0;
 font-size: 16px;
 color: #fff;
}

.chat-user-list ul {
 list-style: none;
 padding: 0;
 margin: 0;
}

.chat-user-list li {
height: 40px;
line-height: 40px;
 color: #555;
}
 